<?php
include('../common/config.php');
$conn = new connectDb();
$name = $_POST['name'];
$sql = "select `news_title`,`news_link`,`news_time` from food_caiji_zccw where area = '$name' order by id asc limit 0,5"; 
	$query = mysql_query($sql) or die(mysql_error());
	while($row = mysql_fetch_array($query,MYSQL_ASSOC)){
		$dataNews[] = $row;
	}
	$data = $dataNews; 
	
echo json_encode($data);
//print_r($data);

?>
